<template>
  <div class="app-container">
  <div class="tou">
    <div class="university-title">渤海大学数据可视化遥控器</div>

    <div class="button-group">
      <el-button class="icon-button" @click="callContact" style="display: flex; flex-direction: column; align-items: center;">
        <div style="display: flex; flex-direction: column; align-items: center;">
          <el-image :src="require('@/assets/images/deng.png')" style="width: 31px;"></el-image>
          <span style="margin-top: 5px;">登录</span>
        </div>
      </el-button>
    <!--<el-button class="icon-button" @click="showCollegeIntro" style="display: flex; flex-direction: column; align-items: center;">
      <div style="display: flex; flex-direction: column; align-items: center;">
        <el-image :src="require('@/assets/images/data1.png')" style="width: 25px;"></el-image>
        <span style="margin-top: 8px;">数据展示</span>
      </div>
    </el-button>-->

  </div>

  </div>
  </div>
</template>

<script>
  export default {
    methods: {
      showWelcomePage() {
        // 处理显示欢迎页的逻辑
      },
      showCollegeIntro() {
        // 处理显示学院介绍的逻辑
      },
      callContact() {
        this.$router.push({path: "/ykqlogin2"});
      },
    },
  };
</script>

<style scoped>
  .tou {
    background-color: #f5f5f5; /* 微型灰 */
    padding-bottom: 20px; /* 添加底部间距 */
  }
  .app-container {
    background-color: #f5f5f5; /* 设置整体背景颜色为灰色 */
    height: 100%;
  }
  .university-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* 标题与按钮组的间距 */
  }
  .button-group {
    display: flex;
    justify-content: center;
  }
  .el-icon-notebook-1 {
    font-size: 2em;
  }
  .el-icon-notebook-2 {
    font-size: 2em;
  }
  .icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100px;
    height: 80px;
  }

  .icon-button i {
    display: block;
  }

  .button-text {
    margin-top: 5px;
  }
</style>
